url = window.location.search.substring(1);

function detailsitem(id) {
    $.ajax({
        type: 'get',
        url: 'http://39.106.207.209:8100/interview/getInterviewById/' + id,
        success(res) {
            console.log(res.data);
            $('.com_name').val(res.data.companyname);
            $("#selects option[value=" + res.data.plat + "]").prop("selected", true);
            $('.com_sta').val(res.data.job);
            $('.com_phone').val(res.data.phone);
            $('.com_time').val(res.data.timeview);
            $('.com_lati').val(res.data.latlang);
            $("input[name='ind'][value=" + res.data.isnative + "]").attr("checked", true)
            $('textarea').val(res.data.info);

        }
    })
}
detailsitem(url)

function detailsclose() {
    window.location = '../home/home.html'
}